<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        .field {
            margin: 100px auto;
            padding: 10px;
            width: 500px;
        }
        .field > input {
            display: block;
            width: 100%;
            margin: 10px 0;
            height: 30px;
            border: none;
            border: 1px solid #ccc;
            line-height: 30px;
            border-radius: 7px;
        }
        .field > meter {
            display: block;
            width: 100%;
            margin: 10px 0;
            border-radius: 7px;
            height: 30px;
        }

    </style>
</head>
<body>
    <form action="">
        <fieldset class="field">
            <legend>学生档案</legend>
            <label for="name">学生姓名:</label>
            <input type="text" name="stu_name" id="stu_name" required placeholder="请输入用户名">
            <label for="name">手机号码:</label>
            <input type="tel" name="stu_tel" id="stu_tel" pattern="^1\d{10}$" required>
            <label for="name">邮箱地址:</label>
            <input type="email" name="stu_email" id="stu_eamil">
            <label for="name">所属学院:</label>
            <input type="test" name="stu_Department" id="stu_Department" required list="Department">
            <datalist id="Department">
                <option value="计院1"></option>
                <option value="计院2"></option>
                <option value="计院3"></option>
                <option value="计院4"></option>
            </datalist>
            <label for="score">成绩:</label>
            <input type="number" max="100" min="0" name="stu_score" id="stu_score" required>
            <label for="level">水平:</label>
            <meter max="100" min="0" high="90" low="60" value="0" id="level"></meter>
            <label for="in_time">入学时间:</label>
            <input type="date" name="in_date" id="in_date">
            <label for="out_time">毕业时间:</label>
            <input type="date" name="out_date" id="out_date">
            <input type="submit">
        </fieldset>
    </form>
    <script>    
        var score = document.getElementById("stu_score");
        var level = document.getElementById("level");
        score.oninput = function(){
            level.value =  this.value;
        };
    </script>
    
</body>
</html>